// dialog局部展示
.page-container{
  :deep(.el-overlay) {
    position: relative !important;
  }
  :deep(.el-overlay-dialog) {
    position: relative !important;
    justify-content: flex-start;
    top: initial !important;
    left: initial !important;
    right: initial !important;
    bottom: initial !important;
  }
  :deep(.el-dialog) {
    position: relative !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  :deep(.el-dialog__header) {
    display: none !important;
  }
  :deep(>div:last-of-type) {
    position: relative !important;
    height: 100%;
  }
  :deep(.el-dialog__footer) {
    display: none !important;
  }
}
.ZHLX-dialog.ZHLX-dialog_center.transfer-dialog {
  .transfer__body {
    margin-bottom: 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    box-sizing: border-box;
  }
  .transfer-pane__body {
    height: 100% !important;
    border: none;
    border-radius: 0;
  }
  .transfer-pane__wrap {
    border: none;
    flex: 1;
  }
  .transfer-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    // padding: 9px 14px 9px 16px;
    box-sizing: border-box;
    border-right: 1px solid #dcdfe6;
    &:last-child {
      width: 336px;
      border-right: 0;
    }
    .right-pane {
      border: none;
      :deep(.el-avatar) {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        background: #0071E9;
      }
    }
    &__tools {
      padding: 9px 14px 0 16px;
      .removeAllBtn {
        color: #0071E9;
      }
    }
    // :deep(.el-tree-node) {
    //   padding: 0 14px 0 16px;
    // }
    // :deep(.el-tree-node__content) {
    //   padding: 0 14px !important;
    // }
    :deep(.el-tree-node__content>.el-tree-node__expand-icon) {
      // padding: 6px 6px 6px 0;
      margin-left: 10px;
    }
    :deep(.el-input-group__append) {
      padding: 0 10px;
    }
    :deep(.el-select__wrapper) {
      padding: 4px 6px;
    }
    .check-all-btn {
      width: 50px;
      height: 32px;
      box-sizing: border-box;
      display: block;
      margin-right: 12px;
      :deep(.el-checkbox.el-checkbox--small .el-checkbox__label) {
        font-size: inherit;
      }
    }
    .selected-item-checkbox {
      margin-right: 12px;
    }

    :deep(.entity-selector) {
      // :deep(.el-tree-node__content:hover) {
      //   background-color: rgba($color: #0071E9, $alpha: 0.07);
      // }
      &.hide-is-leaf-icon {
        .el-icon.is-leaf {
          width: 0;
          padding-right: 5px;
        }
      }
      .is-current {
        .el-tree-node__content {
          background: #edf5fd !important;
        }
      }
      .active {
        // &::after {
        //   content: '';
        //   position: absolute;
        //   top: 0;
        //   bottom: 0;
        //   left: -14px;
        //   width: 100%;
        //   background-color: rgba($color: #0071E9, $alpha: 0.07);
        //   z-index: -1;
        // }
        .text {
          color: #0071E9;
        }
      }
    }
    
    .user-list {
      .is-checked {
        .el-avatar {
          background: #1890FF !important;
        }
      }
      :deep(.el-tree-node__content) {
        padding: 0 16px !important;
        &:hover {
          background: #F0F0F0;
        }
        .el-tree-node__expand-icon {
          display: none;
        }
      }
      :deep(.el-tree-node__content>label.el-checkbox) {
        margin-right: 10px;
      }
      .custom-tree-node {
        &-avatar {
          flex-shrink: 0;
        }
      }
      .custom-tree-node-content {
        margin-left: 6px;
        overflow: hidden;
        p {
          margin: 0;
        }
        flex: 1;
        &-name {
          font-size: #333;
          font-size: 14px;
          font-weight: 500;
          line-height: 20px;
        }
        &-dept {
          height: 17px;
          line-height: 17px;
          color: #999999;
          font-size: 12px;
        }
      }
    }

    .selected-item-user {
      padding: 0;
    }
    .selected-item-main {
      border: none;
    }
  }
  .selected-pane {
    width: 325px;
    flex: none;
    .selected-item-user {
      // padding: 0 16px;
      .selected-item-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 4px;
        .name {
          margin-top: 2px;
          overflow: inherit;
          display: flex;
          .name-content {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            // flex-shrink: 0;
          }
          .user-alias {
            width: 0;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .is-down-flag {
            flex-shrink: 0;
            color: #0071E9;
          }
        }
      }
    }
  }

}

.selected-item-user:hover {
  background: #F0F0F0 !important;
}

.el-icon {
  cursor: pointer;
}

.single-line-overflow {
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出的文本 */
  text-overflow: ellipsis; /* 显示省略号 */
}

.remove-tip {
  font-size: 16px;
  margin-bottom: 9px;
  display: block;
}

.remove-btn {
  width: 76px;
  height: 28px;
  padding: 0;
  text-align: center;
  line-height: 28px;
}

.el-select__tags {
  position: absolute;
  line-height: normal;
  white-space: normal;
  z-index: 1;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.el-select__tags-text {
  white-space: pre-wrap;
}

:deep(.el-select__tags) {
  position: absolute;
}

.popupSelect-container {
  width: 100%;

  .el-select__tags {
    max-height: 8rem;
    overflow: auto;

    .el-tag {
      max-width: 260px;
      word-break: break-all;
      height: fit-content;
      white-space: pre-wrap;
      margin: 2px 0 2px 6px;
    }
  }
}

:deep(.el-tree-node__expand-icon) {
  margin-left: 6px !important;
}

:deep(.el-input__wrapper) {
  padding-left: 8px;
  padding-right: 8px;
}